What's wrong with this code? [closed]

Posted by NHans on Stack Overflow See other posts from Stack Overflow or by NHans
Published on 2010-04-15T17:46:57Z Indexed on 2010/04/15 17:53 UTC
Read the original article Hit count: 162

Filed under:

Could you please kind enough me to clarify this question as soon as possible?

pow(X.0,1).

pow(X,Y,Z):-Y1=Y-1,pow(X,Y1,Z1),Z1=Z*X.

© Stack Overflow or respective owner

Related posts about prolog